package com.fc.v2.service;

import com.fc.v2.common.base.BaseService;
import com.fc.v2.mapper.custom.NewUserDao;
import com.fc.v2.model.auto.NewUser;
import com.fc.v2.model.auto.NewUserExample;
import com.fc.v2.model.auto.TsysUser;
import com.fc.v2.model.custom.Tablepar;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewUserService implements BaseService<NewUser, NewUserExample> {
    @Autowired
    private NewUserDao newUserDao;

    /**
     * 分页查询
     */
    public PageInfo<NewUser> list(Tablepar tablepar){
        PageHelper.startPage(tablepar.getPage(), tablepar.getLimit());
        List<NewUser> list= newUserDao.queryUserInfo(tablepar.getSearchText());
        PageInfo<NewUser> pageInfo = new PageInfo<NewUser>(list);
        return  pageInfo;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return 0;
    }

    @Override
    public int insertSelective(NewUser record) {
        return 0;
    }

    @Override
    public NewUser selectByPrimaryKey(String id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(NewUser record) {
        return 0;
    }

    @Override
    public int updateByExampleSelective(NewUser record, NewUserExample example) {
        return 0;
    }

    @Override
    public int updateByExample(NewUser record, NewUserExample example) {
        return 0;
    }

    @Override
    public List<NewUser> selectByExample(NewUserExample example) {
        return null;
    }

    @Override
    public long countByExample(NewUserExample example) {
        return 0;
    }

    @Override
    public int deleteByExample(NewUserExample example) {
        return 0;
    }
}
